<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script>
        var age = 1;
        while (age <= 100) {
            if (age === 1) {
                console.log(`这个人今年${age}岁了,他出生了`)
            } else if (age === 100) {
                console.log(`这个人今年${age}岁了,他死了`)
            } else {
                console.log(`这个人今年${age}岁了`)
            }
            age++;
        }
        var like = prompt('你爱我吗?');
        while (like !== '我爱你') {
            like = prompt('你爱我吗?');
        }
        alert('我也爱你')
    </script>
</head>

<body>

</body>

</html>